package com.itheima.manager;

import com.itheima.common.R;
import com.itheima.domain.MemberLevel;
import com.itheima.service.IMemberLevelService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class UmsMemberLevelManager {
    @DubboReference
    IMemberLevelService memberLevelService;

    //查询所有会员等级
    public R<List<MemberLevel>> findAll(Integer defaultStatus) {
        List<MemberLevel> list=memberLevelService.findAll(defaultStatus);
        return R.success(list);
    }
}
